package dcutils.cards.standard;

// Import JDK Classes
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

/**
 * Represents all the suites in the standard deck of playing cards.
 * @author dca
 */
public enum Suit implements Iterable<Suit> {
	SPADES("spades"),
	HEARTS("hearts"),
	CLUBS("clubs"),
	DIAMONDS("diamonds");

	private String name;

	private Suit(String name) {
		this.name = name;
	} // END constructor

	public String getName() {
		return this.name;
	} // END getName

	public static Suit[] asArray() {
		return values();
	} // END asArray

	public static List<Suit> asList() {
		return Arrays.asList(asArray());
	} // END asList

	@Override
	public Iterator<Suit> iterator() {
		return asList().iterator();
	} // END iterator

	@Override
	public String toString() {
		return getName();
	} // END toString
} // END enum Suit
